printing the content of singly linked list